package com.xilihui.xlh.business.entities;

import com.xilihui.xlh.core.app.BaseEntity;

import java.io.Serializable;
import java.util.List;

/**
 * Created by Administrator on 2018/9/10.
 */

public class AddressEntity extends BaseEntity{


    private List<AddressListBean> address_list;

    public List<AddressListBean> getAddress_list() {
        return address_list;
    }

    public void setAddress_list(List<AddressListBean> address_list) {
        this.address_list = address_list;
    }

    public static class AddressListBean implements Serializable{
        /**
         * address_id : 835
         * user_id : 2628
         * consignee : 伟哥ge
         * email : 
         * country : 0
         * province : {"id":"1","name":"北京市","level":"1","parent_id":"0"}
         * city : {"id":"10","name":"朝阳门街道","level":"4","parent_id":"3"}
         * district : {"id":"20","name":"金融街街道","level":"4","parent_id":"14"}
         * twon : 0
         * address : 123566
         * zipcode : 
         * mobile : 13405958785
         * is_default : 1
         * is_pickup : 0
         */

        private String address_id;
        private String user_id;
        private String consignee;
        private String email;
        private String country;
        private ProvinceBean province;
        private CityBean city;
        private DistrictBean district;
        private String twon;
        private String address;
        private String zipcode;
        private String mobile;
        private String is_default;
        private String is_pickup;

        public String getAddress_id() {
            return address_id;
        }

        public void setAddress_id(String address_id) {
            this.address_id = address_id;
        }

        public String getUser_id() {
            return user_id;
        }

        public void setUser_id(String user_id) {
            this.user_id = user_id;
        }

        public String getConsignee() {
            return consignee;
        }

        public void setConsignee(String consignee) {
            this.consignee = consignee;
        }

        public String getEmail() {
            return email;
        }

        public void setEmail(String email) {
            this.email = email;
        }

        public String getCountry() {
            return country;
        }

        public void setCountry(String country) {
            this.country = country;
        }

        public ProvinceBean getProvince() {
            return province;
        }

        public void setProvince(ProvinceBean province) {
            this.province = province;
        }

        public CityBean getCity() {
            return city;
        }

        public void setCity(CityBean city) {
            this.city = city;
        }

        public DistrictBean getDistrict() {
            return district;
        }

        public void setDistrict(DistrictBean district) {
            this.district = district;
        }

        public String getTwon() {
            return twon;
        }

        public void setTwon(String twon) {
            this.twon = twon;
        }

        public String getAddress() {
            return address;
        }

        public void setAddress(String address) {
            this.address = address;
        }

        public String getZipcode() {
            return zipcode;
        }

        public void setZipcode(String zipcode) {
            this.zipcode = zipcode;
        }

        public String getMobile() {
            return mobile;
        }

        public void setMobile(String mobile) {
            this.mobile = mobile;
        }

        public String getIs_default() {
            return is_default;
        }

        public void setIs_default(String is_default) {
            this.is_default = is_default;
        }

        public String getIs_pickup() {
            return is_pickup;
        }

        public void setIs_pickup(String is_pickup) {
            this.is_pickup = is_pickup;
        }

        public static class ProvinceBean implements Serializable{
            /**
             * id : 1
             * name : 北京市
             * level : 1
             * parent_id : 0
             */

            private String id;
            private String name;
            private String level;
            private String parent_id;

            public String getId() {
                return id;
            }

            public void setId(String id) {
                this.id = id;
            }

            public String getName() {
                return name;
            }

            public void setName(String name) {
                this.name = name;
            }

            public String getLevel() {
                return level;
            }

            public void setLevel(String level) {
                this.level = level;
            }

            public String getParent_id() {
                return parent_id;
            }

            public void setParent_id(String parent_id) {
                this.parent_id = parent_id;
            }
        }

        public static class CityBean implements Serializable{
            /**
             * id : 10
             * name : 朝阳门街道
             * level : 4
             * parent_id : 3
             */

            private String id;
            private String name;
            private String level;
            private String parent_id;

            public String getId() {
                return id;
            }

            public void setId(String id) {
                this.id = id;
            }

            public String getName() {
                return name;
            }

            public void setName(String name) {
                this.name = name;
            }

            public String getLevel() {
                return level;
            }

            public void setLevel(String level) {
                this.level = level;
            }

            public String getParent_id() {
                return parent_id;
            }

            public void setParent_id(String parent_id) {
                this.parent_id = parent_id;
            }
        }

        public static class DistrictBean implements Serializable{
            /**
             * id : 20
             * name : 金融街街道
             * level : 4
             * parent_id : 14
             */

            private String id;
            private String name;
            private String level;
            private String parent_id;

            public String getId() {
                return id;
            }

            public void setId(String id) {
                this.id = id;
            }

            public String getName() {
                return name;
            }

            public void setName(String name) {
                this.name = name;
            }

            public String getLevel() {
                return level;
            }

            public void setLevel(String level) {
                this.level = level;
            }

            public String getParent_id() {
                return parent_id;
            }

            public void setParent_id(String parent_id) {
                this.parent_id = parent_id;
            }
        }

        @Override
        public String  toString() {
            return "AddressListBean{" +
                    "address_id='" + address_id + '\'' +
                    ", user_id='" + user_id + '\'' +
                    ", consignee='" + consignee + '\'' +
                    ", email='" + email + '\'' +
                    ", country='" + country + '\'' +
                    ", province=" + province +
                    ", city=" + city +
                    ", district=" + district +
                    ", twon='" + twon + '\'' +
                    ", address='" + address + '\'' +
                    ", zipcode='" + zipcode + '\'' +
                    ", mobile='" + mobile + '\'' +
                    ", is_default='" + is_default + '\'' +
                    ", is_pickup='" + is_pickup + '\'' +
                    '}';
        }
    }
}
